/**
 * @作者 chengxinxiaofeng
 * @Author ouxueting
 *
 */
package com.chinaunicom.tour.sys.mapper;

import java.util.List;

import com.chinaunicom.tour.sys.entity.User;
import com.chinaunicom.tour.sys.model.UserModel;

public interface UserMapper {

    int delete(String id);
    List<User> findList(UserModel queryModel);

    List<User> pageQuery(UserModel queryModel);

    int pageQueryCount(UserModel queryModel);
    ///////////////////////////
    int add( User user);
    User findByUserName(String userName);
    User  findByUserNameAndPwd (UserModel user);
    User findByUserNameAndEmail (UserModel user);
    int update( User entity);
    User findById(String id);

}
